package com.example.miniomultipartupload.domain.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 分片上传初始化
 */
@Data
public class MultipartInitParam {
    @ApiModelProperty("文件名")
    @NotEmpty(message = "文件名不能为空")
    private String filename;
    @ApiModelProperty("文件MIME类型")
    private String contentType;
    @ApiModelProperty("文件大小（单位：字节Byte）,按照10兆分割")
    @NotNull(message = "文件大小不能为空")
    private Long size;
    @ApiModelProperty("md5")
    private String md5;
}
